/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.res0w.SMMS.ui.admin.MenuList;

import com.res0w.SMMS.ui.UDResource.ImageButton;
import com.res0w.SMMS.ui.UDResource.ListMenuWindow;
import com.res0w.SMMS.ui.admin.AdminMainPanel;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

/**
 *
 * @author res0w
 * @since 2009-10-3
 * @version 0.1
 */
public class GameStatisticsListMenu extends ListMenuWindow {

    private AdminMainPanel parentPanel;

    public GameStatisticsListMenu(AdminMainPanel parentPanel) {
        super(parentPanel);

        this.parentPanel = parentPanel;
        this.pack();
    }

    @Override
    public void btnInit() {
//        throw new UnsupportedOperationException("Not supported yet.");
        ImageButton gameStatistics = new ImageButton(
                "/com/res0w/SMMS/ui/UDResource/Statistics_d.png",
                "/com/res0w/SMMS/ui/UDResource/Statistics_h.png",
                "/com/res0w/SMMS/ui/UDResource/Statistics_s.png");
        super.panel.setButtonLocation(gameStatistics, 0, 6);
        gameStatistics.addActionListener(new ActionListener() {

            public void actionPerformed(ActionEvent e) {
                setVisible(false);
                parentPanel.setSubPanelVisible(false);
                parentPanel.gstp.setVisible(true);
            }
        });
    }
}
